// There is a hero for each maze.
//
// The player will move the hero through the maze until it gets to the
// end entity.
//
// Heroes are mobile, that is why this class inherits from Mob.
//
// The maze class will take care of moving the hero, generating
// the footprints and adding them to the trail.

package com.fduss.mazegame.core.unit;

import com.fduss.mazegame.core.maze.Maze;
import com.fduss.mazegame.core.unit.feature.HasEvent;
import com.fduss.mazegame.core.unit.feature.Icon;

public class Hero extends Mob {
    private int killing, picking, steps;

    public Hero(Place place) {
        super(place);
    }

    @Override
    public void handleEvent(Maze maze, HasEvent ob) {
        if (ob instanceof Monster)
            this.setAlive(false);
    }

    public Icon getIcon() {
        return Icon.HERO;
    }

    public void addKilling() {
        this.killing++;
    }

    public void addPicking() {
        this.picking++;
    }

    public void addSteps() {
        this.steps++;
    }

    public int getSteps() {
        return steps;
    }

    public int getKilling() {
        return killing;
    }

    public int getPicking() {
        return picking;
    }
}
